package com.bdqn.t350.ch11.service;

import org.apache.ibatis.annotations.Param;

import java.util.Set;

public interface RoleRightService {

    /**
     * 批量添加
     *
     * @param rightSet
     * @param roleId
     * @return
     */
    public int batchInsert(Set<String> rightSet, Integer roleId);

    /**
     * 批量删除
     *
     * @param rightSet
     * @param roleId
     * @return
     */
    public int deleteByIds(Set<String> rightSet, Integer roleId);

    /**
     * 删除所有
     *
     * @param roleId
     * @return
     */
    public int deleteAll(@Param("roleId") Integer roleId);
}
